home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 11 / Cream of the Crop 11-1.iso / compress / gnucpio.zip / MAKEFILE.OS2 < prev    next >
Text File  |  1996-01-01  |  2KB  |  57 lines

  1. # OS/2 makefile for GNU cpio.
  2. # Copyright (C) 1991, 1992 Free Software Foundation, Inc.
  3.  
  4. # This program is free software; you can redistribute it and/or modify
  5. # it under the terms of the GNU General Public License as published by
  6. # the Free Software Foundation; either version 2, or (at your option)
  7. # any later version.
  8.  
  9. # This program is distributed in the hope that it will be useful,
  10. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  12. # GNU General Public License for more details.
  13.  
  14. # You should have received a copy of the GNU General Public License
  15. # along with this program; if not, write to the Free Software
  16. # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  17.  
  18. DEFS = -D__MSDOS__ -DSTDC_HEADERS -DHAVE_VPRINTF -DHAVE_STRERROR -DNO_REMOTE
  19.  
  20. # this is for emx/gcc (32-bit)
  21. release:
  22.     $(MAKE) all -f makefile.os2 \
  23.     CC="gcc -Zomf -O" O=".obj" LDFLAGS="-s -Zcrtdll -Zstack 512"
  24. debug:
  25.     $(MAKE) all -f makefile.os2 \
  26.     CC="gcc -g" O=".o" LDFLAGS=""
  27.  
  28. CFLAGS = -ansi -I. $(DEFS)
  29. LIBS =
  30.  
  31. OBJS = copyin$(O) copyout$(O) copypass$(O) dstring$(O) fnmatch$(O) \
  32. global$(O) main$(O) tar$(O) util$(O) error$(O) getopt$(O) getopt1$(O) \
  33. filemode$(O) version$(O) xmalloc$(O) xstrdup$(O) makepath$(O) bcopy$(O) \
  34. dirname$(O) stripslash$(O) defer$(O) # tcexparg$(O)
  35.  
  36. all:    cpio.exe
  37.  
  38. cpio.exe:    $(OBJS)
  39.     $(CC) -o $@ $(OBJS) $(LIBS) $(LDFLAGS)
  40.  
  41. .SUFFIXES: .c $O
  42.  
  43. .c$(O):
  44.     $(CC) -c $(CFLAGS) $<
  45.  
  46. copyin$(O): cpio.h cpiohdr.h dstring.h extern.h filetypes.h fnmatch.h rmt.h system.h
  47. copyout$(O): cpio.h cpiohdr.h dstring.h extern.h filetypes.h rmt.h system.h
  48. copypass$(O): cpio.h cpiohdr.h dstring.h extern.h filetypes.h system.h
  49. dstring$(O): dstring.h
  50. global$(O): cpio.h cpiohdr.h dstring.h extern.h system.h
  51. main$(O): cpio.h cpiohdr.h dstring.h extern.h filetypes.h rmt.h
  52. tar$(O): filetypes.h cpio.h cpiohdr.h dstring.h extern.h rmt.h tar.h tarhdr.h system.h
  53. util$(O): extern.h rmt.h system.h
  54.  
  55. clean:
  56.     rm cpio.exe *$(O)
  57.